package ooday01;
/**学生的测试类*/
public class StudentTest {
    public static void main(String[] args) {
        //建一个学生对象
        Student zs = new Student();
        //访问成员变量
        zs.name = "张三";
        zs.age = 25;
        zs.className = "jsd2302";
        zs.stuID = "001";
        //调用方法
        zs.study();
        zs.sayhi();
        zs.playWith("李四");

        Student ls = new Student(); //1）创建一个学生对象 2）给所有成员变量赋默认值
        ls.study();
        ls.sayhi();
        ls.playWith("王五");
       
    }
}
